package com.quanyan.club.mapper;

import com.quanyan.club.entity.admin.ClubActivityDo;
import com.quanyan.club.entity.admin.ClubActivityListDo;
import com.quanyan.club.entity.admin.ReqClubActivityAdmin;
import com.quanyan.club.entity.vo.req.admin.ReqActivityOrderQuery;
import com.quanyan.club.entity.vo.resp.admin.ResActivityOrderVo;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by yue.yuan on 2016/8/19.
 */
public interface ClubActivityAdminMapper {

    int countClubActivityList(ReqClubActivityAdmin reqClubActivityAdmin);

    List<ClubActivityListDo> queryClubActivityList(ReqClubActivityAdmin reqClubActivityAdmin);

    ClubActivityDo getClubActivityDetail(Integer activityId);

    int updateClubActivityDetail(ClubActivityDo clubActivityDo);

    int deleteActivityByActivityId(Integer activityId);

    int updateRecommend(@Param("activityId") Integer activityId, @Param("isRecommend") Integer isRecommend);

    List<ResActivityOrderVo> queryActivityOrderList(ReqActivityOrderQuery reqActivityOrderQuery);

    int queryActivityOrderListCount(ReqActivityOrderQuery reqActivityOrderQuery);

    int countActivityByClub(@Param("map")Map<String, Object> paramMap);

    List<Integer> selectActivityByNotEnd();
}
